<?php

class infoActions extends sfActions {

    public function preExecute(){
        if (!$this->getUser()->hasAttribute('scountry')){
            if ($this->getUser()->isFirstRequest()){
                $culture = $this->getRequest()->getPreferredCulture(array('en', 'es'));
                $this->getUser()->setCulture($culture);
                $this->getUser()->isFirstRequest(false);
                $country = CountryPeer::retrieveByPK(169);/* 169: ID Perú en BD */
                $this->getUser()->setAttribute('scountry',$country);
            }else{
                $culture = $this->getUser()->getCulture();
            }
        }
    }

    public function executeIndex(){
        
    }

}